package com.guacha;

public class Test {
    public static void main(String[] args) {
        //
        Observe observe = new WeiXinYongHu("zs");
        Observe observe1 = new WeiXinYongHu("ls");
        Observe observe2 = new WeiXinYongHu("ww");

        //
        FaBu faBu = new WeiXinGongZongHao();
        faBu.addObserve(observe);
        faBu.addObserve(observe1);
        faBu.addObserve(observe2);

        faBu.del(observe1);// ls取消关注


        // 发布一条消息
        faBu.sendMsg("AAA这个月发布了一次周刊");
    }
}
